/*
 ============================================================================
 Name		: SADocument.cpp
 Author	  : 
 Copyright   : Copyright (c)
 All rights reserved.
 Description : CSADocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include <APGWGNAM.h>
#include "SAAppUi.h"
#include "SADocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSADocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSADocument* CSADocument::NewL(CEikApplication& aApp)
{
    CSADocument* self = NewLC(aApp);
    CleanupStack::Pop(self);
    return self;
}

// -----------------------------------------------------------------------------
// CSADocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSADocument* CSADocument::NewLC(CEikApplication& aApp)
{
    CSADocument* self = new (ELeave) CSADocument(aApp);

    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
}

// -----------------------------------------------------------------------------
// CSADocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSADocument::ConstructL()
{
    // No implementation required
}

// -----------------------------------------------------------------------------
// CSADocument::CSADocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSADocument::CSADocument(CEikApplication& aApp) :
    CAknDocument(aApp)
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CSADocument::~CSADocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CSADocument::~CSADocument()
{
    // No implementation required
}

// ---------------------------------------------------------------------------
// CSADocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CSADocument::CreateAppUiL()
{
    // Create the application user interface, and return a pointer to it;
    // the framework takes ownership of this object
    return new (ELeave) CSAAppUi;
}

//void CSADocument::UpdateTaskNameL(CApaWindowGroupName *aWgName)
//{
//    aWgName->SetHidden(ETrue);
//}
// End of File
